package com.jumi.microservice.controller.admin;

import com.jumi.microservice.common.page.TableDataInfo;
import com.jumi.microservice.dto.admin.OrderRequest;
import com.jumi.microservice.dto.admin.OrderResponse;
import com.jumi.microservice.service.admin.ICpsOrderServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "其他订单")
public class OrderController {
    @Autowired
    ICpsOrderServiceImpl iOrderService;

    @ApiOperation("订单列表")
    @GetMapping("/getOrderAll")
    public TableDataInfo<OrderResponse> getOrderAll(OrderRequest request) {
        return iOrderService.getOrderAll(request);
    }
}
